public interface GatewaySenderFactory
GatewaySender
Modifier and Type | Method and Description |
---|---|
GatewaySenderFactory |
addGatewayEventFilter(GatewayEventFilter filter)
Adds a
GatewayEventFilter |
GatewaySenderFactory |
addGatewayTransportFilter(GatewayTransportFilter filter)
Adds a
GatewayTransportFilter |
GatewaySender |
create(String id,
int remoteDSId)
Creates a
GatewaySender to communicate with remote distributed system |
GatewaySenderFactory |
removeGatewayEventFilter(GatewayEventFilter filter)
Removes the provided
GatewayEventFilter from this GatewaySender. |
GatewaySenderFactory |
removeGatewayTransportFilter(GatewayTransportFilter filter)
Removes the provided
GatewayTransportFilter from this GatewaySender. |
GatewaySenderFactory |
setAlertThreshold(int threshold)
Sets the alert threshold in milliseconds for entries in a
GatewaySender 's queue. |
GatewaySenderFactory |
setBatchConflationEnabled(boolean isConflation)
Sets whether to enable batch conflation for a
GatewaySender 's queue. |
GatewaySenderFactory |
setBatchSize(int size)
Sets the batch size to be picked at the time of dispatching from a
GatewaySender 's
queue. |
GatewaySenderFactory |
setBatchTimeInterval(int interval)
Sets a time interval in milliseconds to wait to form a batch to be dispatched from a
GatewaySender 's queue. |
GatewaySenderFactory |
setDiskStoreName(String name)
Sets the disk store name for overflow or persistence
|
GatewaySenderFactory |
setDiskSynchronous(boolean isSynchronous)
Sets whether or not the writing to the disk is synchronous.
|
GatewaySenderFactory |
setDispatcherThreads(int numThreads)
Sets the number of dispatcher thread.
|
GatewaySenderFactory |
setEnforceThreadsConnectSameReceiver(boolean enforceThreadsConnectSameReceiver)
If true, receiver member id is checked by all dispatcher threads when the connection is
established to ensure they connect to the same receiver.
|
GatewaySenderFactory |
setGatewayEventSubstitutionFilter(GatewayEventSubstitutionFilter filter)
Sets the provided
GatewayEventSubstitutionFilter in this GatewaySenderFactory. |
GatewaySenderFactory |
setGroupTransactionEvents(boolean groupTransactionEvents)
Indicates whether events belonging to the same transaction must be
delivered inside the same batch, i.e.
|
GatewaySenderFactory |
setManualStart(boolean start)
Deprecated.
- Manual start of senders is deprecated and will be removed in a later release.
|
GatewaySenderFactory |
setMaximumQueueMemory(int maxQueueMemory)
Sets the maximum amount of memory (in MB) for a
GatewaySender 's queue. |
GatewaySenderFactory |
setOrderPolicy(GatewaySender.OrderPolicy policy)
Sets
OrderPolicy for this GatewaySender. |
GatewaySenderFactory |
setParallel(boolean isParallel)
Indicates whether all VMs need to distribute events to remote site.
|
GatewaySenderFactory |
setParallelFactorForReplicatedRegion(int parallel) |
GatewaySenderFactory |
setPersistenceEnabled(boolean isPersistence)
Sets whether to enable persistence for a
GatewaySender 's queue. |
GatewaySenderFactory |
setSocketBufferSize(int size)
Sets the buffer size in bytes of the socket connection for this
GatewaySender . |
GatewaySenderFactory |
setSocketReadTimeout(int timeout)
Sets the number of milliseconds to wait for a response from a
GatewayReceiver
before timing out the operation and trying another GatewayReceiver (if any are
available). |
GatewaySenderFactory setParallel(boolean isParallel)
isParallel
- boolean to indicate whether distribution policy is parallelGatewaySenderFactory setGroupTransactionEvents(boolean groupTransactionEvents)
groupTransactionEvents
can be enabled only on parallel gateway senders
or on serial gateway senders with just one dispatcher thread.
It cannot be enabled if batch conflation is enabled.groupTransactionEvents
- boolean to indicate whether events from
the same transaction must be delivered inside
the same batch.GatewaySenderFactory addGatewayEventFilter(GatewayEventFilter filter)
GatewayEventFilter
filter
- GatewayEventFilterGatewaySenderFactory addGatewayTransportFilter(GatewayTransportFilter filter)
GatewayTransportFilter
filter
- GatewayTransportFilterGatewaySenderFactory setSocketBufferSize(int size)
GatewaySender
. The
default is 32768 bytes.size
- The size in bytes of the socket bufferGatewaySenderFactory setSocketReadTimeout(int timeout)
GatewayReceiver
before timing out the operation and trying another GatewayReceiver
(if any are
available). Default is 0 which means infinite timeout.timeout
- number of milliseconds to wait for a response from a GatewayReceiverIllegalArgumentException
- if timeout
is less than 0
.GatewaySenderFactory setDiskStoreName(String name)
name
- the disk store name for overflow or persistenceGatewaySenderFactory setDispatcherThreads(int numThreads)
numThreads
- the number of dispatcher threadsGatewaySenderFactory setOrderPolicy(GatewaySender.OrderPolicy policy)
OrderPolicy
for this GatewaySender. Default order policy is KEY.policy
- the OrderPolicy
for this GatewaySenderGatewaySenderFactory setMaximumQueueMemory(int maxQueueMemory)
GatewaySender
's queue. Default is
100.maxQueueMemory
- The maximum amount of memory (in MB) for a GatewaySender
's
queue.GatewaySenderFactory setBatchSize(int size)
GatewaySender
's
queue. Default batchSize is 100.size
- The size of batches sent from a GatewaySender
to its corresponding
GatewayReceiver
.GatewaySenderFactory setBatchTimeInterval(int interval)
GatewaySender
's queue. Default is 1000.interval
- The maximum time interval (in milliseconds) that can elapse before a partial
batch is sent from a GatewaySender
to its corresponding
GatewayReceiver
.GatewaySenderFactory setBatchConflationEnabled(boolean isConflation)
GatewaySender
's queue. Default is
false.isConflation
- Whether or not to enable batch conflation for batches sent from a
GatewaySender
to its corresponding GatewayReceiver
.GatewaySenderFactory setPersistenceEnabled(boolean isPersistence)
GatewaySender
's queue. Default is false.isPersistence
- Whether to enable persistence for a GatewaySender
's queueGatewaySenderFactory setAlertThreshold(int threshold)
GatewaySender
's queue.
Default value is 0.threshold
- the alert threshold for entries in a GatewaySender
's queue@Deprecated GatewaySenderFactory setManualStart(boolean start)
GatewaySender
. Default is false
i.e. the GatewaySender
will automatically start once created.start
- the manual start boolean property for this GatewaySender
GatewaySenderFactory setDiskSynchronous(boolean isSynchronous)
isSynchronous
- boolean if true indicates synchronous writesGatewaySenderFactory removeGatewayEventFilter(GatewayEventFilter filter)
GatewayEventFilter
from this GatewaySender.filter
- the GatewayEventFilter
to removeGatewaySenderFactory removeGatewayTransportFilter(GatewayTransportFilter filter)
GatewayTransportFilter
from this GatewaySender.filter
- the GatewayTransportFilter
to removeGatewaySenderFactory setParallelFactorForReplicatedRegion(int parallel)
GatewaySenderFactory setGatewayEventSubstitutionFilter(GatewayEventSubstitutionFilter filter)
GatewayEventSubstitutionFilter
in this GatewaySenderFactory.filter
- The GatewayEventSubstitutionFilter
GatewaySenderFactory setEnforceThreadsConnectSameReceiver(boolean enforceThreadsConnectSameReceiver)
enforceThreadsConnectSameReceiver
- boolean if true threads will verify if they are
connected to the same receiverGatewaySender create(String id, int remoteDSId)
GatewaySender
to communicate with remote distributed systemid
- unique id for this SerialGatewaySenderremoteDSId
- unique id representing the remote distributed systemIllegalStateException
- If the GatewaySender creation fails during validation due to
mismatch of attributes of GatewaySender created on other nodes with same id