Class GatewaySenderWrapper
java.lang.Object
org.springframework.data.gemfire.wan.GatewaySenderWrapper
- All Implemented Interfaces:
GatewaySender
GatewaySenderWrapper
is an Adapter around an Apache Geode GatewaySender
providing the ability to control manual start and stop of the sender.- Author:
- David Turanski, John Blum
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.geode.cache.wan.GatewaySender
GatewaySender.OrderPolicy
-
Field Summary
Fields inherited from interface org.apache.geode.cache.wan.GatewaySender
CONNECTION_RETRY_INTERVAL, DEFAULT_ALERT_THRESHOLD, DEFAULT_BATCH_CONFLATION, DEFAULT_BATCH_SIZE, DEFAULT_BATCH_TIME_INTERVAL, DEFAULT_DISK_SYNCHRONOUS, DEFAULT_DISPATCHER_THREADS, DEFAULT_DISTRIBUTED_SYSTEM_ID, DEFAULT_ENFORCE_THREADS_CONNECT_SAME_RECEIVER, DEFAULT_FORWARD_EXPIRATION_DESTROY, DEFAULT_IS_FOR_INTERNAL_USE, DEFAULT_IS_PARALLEL, DEFAULT_MANUAL_START, DEFAULT_MAXIMUM_QUEUE_MEMORY, DEFAULT_MUST_GROUP_TRANSACTION_EVENTS, DEFAULT_ORDER_POLICY, DEFAULT_PARALLELISM_REPLICATED_REGION, DEFAULT_PERSISTENCE_ENABLED, DEFAULT_SOCKET_BUFFER_SIZE, DEFAULT_SOCKET_READ_TIMEOUT, EARLY_ACK, GATEWAY_CONNECTION_IDLE_TIMEOUT, GATEWAY_CONNECTION_READ_TIMEOUT_PROPERTY, GATEWAY_SENDER_TIMEOUT, GET_TRANSACTION_EVENTS_FROM_QUEUE_RETRIES, MINIMUM_SOCKET_READ_TIMEOUT, QUEUE_OPLOG_SIZE, REMOVE_FROM_QUEUE_ON_EXCEPTION
-
Constructor Summary
ConstructorDescriptionGatewaySenderWrapper
(GatewaySender gatewaySender) Constructs an instance ofGatewaySenderWrapper
initialized with the givenGatewaySender
to adapt. -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
destroy()
int
int
int
int
boolean
getId()
int
int
int
int
int
boolean
boolean
boolean
boolean
boolean
isPaused()
boolean
boolean
boolean
void
pause()
void
void
void
resume()
void
setManualStart
(boolean manualStart) void
start()
void
void
stop()
toString()
-
Constructor Details
-
GatewaySenderWrapper
Constructs an instance ofGatewaySenderWrapper
initialized with the givenGatewaySender
to adapt.- Parameters:
gatewaySender
-GatewaySender
to adapt.- Throws:
IllegalArgumentException
- ifGatewaySender
is null.- See Also:
-
-
Method Details
-
isBatchConflationEnabled
public boolean isBatchConflationEnabled()- Specified by:
isBatchConflationEnabled
in interfaceGatewaySender
-
isDiskSynchronous
public boolean isDiskSynchronous()- Specified by:
isDiskSynchronous
in interfaceGatewaySender
-
isManualStart
public boolean isManualStart()- Specified by:
isManualStart
in interfaceGatewaySender
-
isParallel
public boolean isParallel()- Specified by:
isParallel
in interfaceGatewaySender
-
isPaused
public boolean isPaused()- Specified by:
isPaused
in interfaceGatewaySender
-
isPersistenceEnabled
public boolean isPersistenceEnabled()- Specified by:
isPersistenceEnabled
in interfaceGatewaySender
-
isRunning
public boolean isRunning()- Specified by:
isRunning
in interfaceGatewaySender
-
getAlertThreshold
public int getAlertThreshold()- Specified by:
getAlertThreshold
in interfaceGatewaySender
-
getBatchSize
public int getBatchSize()- Specified by:
getBatchSize
in interfaceGatewaySender
-
getBatchTimeInterval
public int getBatchTimeInterval()- Specified by:
getBatchTimeInterval
in interfaceGatewaySender
-
getDiskStoreName
- Specified by:
getDiskStoreName
in interfaceGatewaySender
-
getDispatcherThreads
public int getDispatcherThreads()- Specified by:
getDispatcherThreads
in interfaceGatewaySender
-
getEnforceThreadsConnectSameReceiver
public boolean getEnforceThreadsConnectSameReceiver()- Specified by:
getEnforceThreadsConnectSameReceiver
in interfaceGatewaySender
-
getGatewayEventFilters
- Specified by:
getGatewayEventFilters
in interfaceGatewaySender
-
getGatewayEventSubstitutionFilter
- Specified by:
getGatewayEventSubstitutionFilter
in interfaceGatewaySender
-
getGatewayTransportFilters
- Specified by:
getGatewayTransportFilters
in interfaceGatewaySender
-
getId
- Specified by:
getId
in interfaceGatewaySender
-
setManualStart
public void setManualStart(boolean manualStart) -
getMaxParallelismForReplicatedRegion
public int getMaxParallelismForReplicatedRegion()- Specified by:
getMaxParallelismForReplicatedRegion
in interfaceGatewaySender
-
getMaximumQueueMemory
public int getMaximumQueueMemory()- Specified by:
getMaximumQueueMemory
in interfaceGatewaySender
-
getOrderPolicy
- Specified by:
getOrderPolicy
in interfaceGatewaySender
-
getRemoteDSId
public int getRemoteDSId()- Specified by:
getRemoteDSId
in interfaceGatewaySender
-
getSocketBufferSize
public int getSocketBufferSize()- Specified by:
getSocketBufferSize
in interfaceGatewaySender
-
getSocketReadTimeout
public int getSocketReadTimeout()- Specified by:
getSocketReadTimeout
in interfaceGatewaySender
-
addGatewayEventFilter
- Specified by:
addGatewayEventFilter
in interfaceGatewaySender
-
mustGroupTransactionEvents
public boolean mustGroupTransactionEvents()- Specified by:
mustGroupTransactionEvents
in interfaceGatewaySender
-
removeGatewayEventFilter
- Specified by:
removeGatewayEventFilter
in interfaceGatewaySender
-
destroy
public void destroy()- Specified by:
destroy
in interfaceGatewaySender
-
pause
public void pause()- Specified by:
pause
in interfaceGatewaySender
-
rebalance
public void rebalance()- Specified by:
rebalance
in interfaceGatewaySender
-
resume
public void resume()- Specified by:
resume
in interfaceGatewaySender
-
start
public void start()- Specified by:
start
in interfaceGatewaySender
-
startWithCleanQueue
public void startWithCleanQueue()- Specified by:
startWithCleanQueue
in interfaceGatewaySender
-
stop
public void stop()- Specified by:
stop
in interfaceGatewaySender
-
toString
-