javaclient

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 17, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	JavaClientImage   string        = "docker.io/qdrshipshape/examples-java-basic:latest"
	JavaBasicSender   JavaClientCmd = "com.github.rhmessaging.qdrshipshape.examples.basic.client.BasicSender"
	JavaBasicReceiver JavaClientCmd = "com.github.rhmessaging.qdrshipshape.examples.basic.client.BasicReceiver"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientBuilder

type ClientBuilder struct {
	// contains filtered or unexported fields
}

func NewClientBuilder

func NewClientBuilder(name string, command JavaClientCmd, ctx framework.ContextData, url string) *ClientBuilder

func (*ClientBuilder) Address

func (s *ClientBuilder) Address(addr string) *ClientBuilder

Address to use

func (*ClientBuilder) Build

func (s *ClientBuilder) Build() *JavaClient

func (*ClientBuilder) EnableTracing

func (s *ClientBuilder) EnableTracing() *ClientBuilder

func (*ClientBuilder) EnvVar

func (s *ClientBuilder) EnvVar(variable, value string) *ClientBuilder

func (*ClientBuilder) ImageCustom

func (s *ClientBuilder) ImageCustom(image string) *ClientBuilder

func (*ClientBuilder) Timeout

func (s *ClientBuilder) Timeout(timeout int) *ClientBuilder

Timeout sets the amount of secs to wait before timing out

type JavaClient

type JavaClient struct {
	amqp.AmqpClientCommon
}

func (*JavaClient) Result

func (p *JavaClient) Result() amqp.ResultData

type JavaClientCmd

type JavaClientCmd string

type JavaClientResult

type JavaClientResult struct {
	Delivered int    `json:"delivered"`
	Released  int    `json:"released"`
	Rejected  int    `json:"rejected"`
	Modified  int    `json:"modified"`
	Accepted  int    `json:"accepted"`
	ErrorMsg  string `json:"errormsg"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL