public static class ServiceEndpoint.Builder
extends java.lang.Object
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
ServiceEndpoint |
build()
Build the ServiceEndpoint instance.
|
ServiceEndpoint.Builder |
dispatcher(Dispatcher dispatcher)
Set the user
Dispatcher for this ServiceEndpoint |
ServiceEndpoint.Builder |
endpoint(Endpoint endpoint)
Set the
Endpoint for this ServiceEndpoint
replacing all existing endpoint information. |
ServiceEndpoint.Builder |
endpointMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
Set the metadata for the
Endpoint for this ServiceEndpoint replacing any metadata already set. |
ServiceEndpoint.Builder |
endpointName(java.lang.String name)
Set the name for the
Endpoint for this ServiceEndpoint replacing any name already set. |
ServiceEndpoint.Builder |
endpointQueueGroup(java.lang.String queueGroup)
Set the queueGroup for the
Endpoint for this ServiceEndpoint replacing any queueGroup already set. |
ServiceEndpoint.Builder |
endpointSubject(java.lang.String subject)
Set the subject for the
Endpoint for this ServiceEndpoint replacing any subject already set. |
ServiceEndpoint.Builder |
group(Group group)
Set the
Group for this ServiceEndpoint |
ServiceEndpoint.Builder |
handler(ServiceMessageHandler handler)
Set the
ServiceMessageHandler for this ServiceEndpoint |
ServiceEndpoint.Builder |
statsDataSupplier(java.util.function.Supplier<JsonValue> statsDataSupplier)
Set the
EndpointStats data supplier for this ServiceEndpoint |
public ServiceEndpoint.Builder group(Group group)
Group for this ServiceEndpointgroup - the grouppublic ServiceEndpoint.Builder endpoint(Endpoint endpoint)
Endpoint for this ServiceEndpoint
replacing all existing endpoint information.endpoint - the endpoint to clonepublic ServiceEndpoint.Builder endpointName(java.lang.String name)
Endpoint for this ServiceEndpoint replacing any name already set.name - the endpoint namepublic ServiceEndpoint.Builder endpointSubject(java.lang.String subject)
Endpoint for this ServiceEndpoint replacing any subject already set.subject - the subjectpublic ServiceEndpoint.Builder endpointQueueGroup(java.lang.String queueGroup)
Endpoint for this ServiceEndpoint replacing any queueGroup already set.queueGroup - the queueGrouppublic ServiceEndpoint.Builder endpointMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
Endpoint for this ServiceEndpoint replacing any metadata already set.metadata - the metadatapublic ServiceEndpoint.Builder handler(ServiceMessageHandler handler)
ServiceMessageHandler for this ServiceEndpointhandler - the handlerpublic ServiceEndpoint.Builder dispatcher(Dispatcher dispatcher)
Dispatcher for this ServiceEndpointdispatcher - the dispatcherpublic ServiceEndpoint.Builder statsDataSupplier(java.util.function.Supplier<JsonValue> statsDataSupplier)
EndpointStats data supplier for this ServiceEndpointstatsDataSupplier - the data supplierpublic ServiceEndpoint build()