public static final class DispatcherChannelSetup.BoundedByChannelId extends DispatcherChannelSetup
IChannelComponent (a IChannelManager or a IChannelService) to the IChannel
with specified channelId managed by IMessageDispatcher with specified id.DispatcherChannelSetup.BoundedByChannelConfiguration, DispatcherChannelSetup.BoundedByChannelId, DispatcherChannelSetup.ChannelServiceConfiguration| Constructor and Description |
|---|
BoundedByChannelId(String channelId)
Constructor to bind a
IChannelComponent to the IChannel with specified channelId. |
| Modifier and Type | Method and Description |
|---|---|
DispatcherChannelSetup.BoundedByChannelId |
copy() |
String |
getChannelId()
getter for channel id
|
String |
getDispatcherId()
getter for dispatcherId
|
protected Long |
getMaxMessageSize()
getter for max channel size
|
String |
getName()
getter for name of channel component
|
PrivateChannelWorkerRequirement |
getPrivateChannelWorkerRequirement()
getter for private channel worker requirement
|
Class<? extends IChannelComponent>[] |
getScopes()
specified scopes allowed to apply this configuration type
|
boolean |
isAutoCreateChannel()
getter for auto create channel mode
|
DispatcherChannelSetup.BoundedByChannelId |
setAutoCreateChannel(boolean autoCreateChannel)
setter for auto create channel mode
|
DispatcherChannelSetup.BoundedByChannelId |
setDispatcherId(String dispatcherId)
setter for dispatcher id
|
protected DispatcherChannelSetup.BoundedByChannelId |
setMaxMessageSize(Long maxMessageSize)
setter for max channel size
|
DispatcherChannelSetup.BoundedByChannelId |
setName(String name)
setter for name of channel component
|
DispatcherChannelSetup.BoundedByChannelId |
setPrivateChannelWorkerRequirement(PrivateChannelWorkerRequirement privateChannelWorkerRequirement)
setter for private channel worker requirement
|
isOptional, setOptionalpublic BoundedByChannelId(String channelId)
IChannelComponent to the IChannel with specified channelId.channelId - id of channelpublic String getChannelId()
public String getName()
DispatcherChannelSetupgetName in class DispatcherChannelSetuppublic DispatcherChannelSetup.BoundedByChannelId setName(String name)
DispatcherChannelSetupsetName in class DispatcherChannelSetupname - name of channel componentpublic DispatcherChannelSetup.BoundedByChannelId setAutoCreateChannel(boolean autoCreateChannel)
autoCreateChannel - if true, dispatcher creates automatically a channel with channelId if it still does not existpublic boolean isAutoCreateChannel()
public Class<? extends IChannelComponent>[] getScopes()
DispatcherChannelSetupgetScopes in class DispatcherChannelSetuppublic DispatcherChannelSetup.BoundedByChannelId setDispatcherId(String dispatcherId)
DispatcherChannelSetupsetDispatcherId in class DispatcherChannelSetupdispatcherId - id of dispatcher (NULL for all dispatchers ) managed the channelprotected DispatcherChannelSetup.BoundedByChannelId setMaxMessageSize(Long maxMessageSize)
DispatcherChannelSetupsetMaxMessageSize in class DispatcherChannelSetupmaxMessageSize - max size of messagespublic DispatcherChannelSetup.BoundedByChannelId setPrivateChannelWorkerRequirement(PrivateChannelWorkerRequirement privateChannelWorkerRequirement)
DispatcherChannelSetupsetPrivateChannelWorkerRequirement in class DispatcherChannelSetupprivateChannelWorkerRequirement - declares necessity to use same channel worker thread for synchronized channel activities at all timespublic String getDispatcherId()
DispatcherChannelSetupgetDispatcherId in class DispatcherChannelSetupprotected Long getMaxMessageSize()
DispatcherChannelSetupgetMaxMessageSize in class DispatcherChannelSetuppublic PrivateChannelWorkerRequirement getPrivateChannelWorkerRequirement()
DispatcherChannelSetupgetPrivateChannelWorkerRequirement in class DispatcherChannelSetuppublic DispatcherChannelSetup.BoundedByChannelId copy()
copy in class DispatcherChannelSetupCopyright © 2020. All rights reserved.