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, GET_TRANSACTION_EVENTS_FROM_QUEUE_WAIT_TIME_MS, MINIMUM_SOCKET_READ_TIMEOUT, QUEUE_OPLOG_SIZE, REMOVE_FROM_QUEUE_ON_EXCEPTION -
Constructor Summary
ConstructorsConstructorDescriptionGatewaySenderWrapper(GatewaySender gatewaySender) Constructs an instance ofGatewaySenderWrapperinitialized with the givenGatewaySenderto adapt. -
Method Summary
Modifier and TypeMethodDescriptionvoidvoiddestroy()intintintintbooleangetId()intintintintintbooleanbooleanbooleanbooleanbooleanisPaused()booleanbooleanbooleanvoidpause()voidvoidvoidresume()voidsetManualStart(boolean manualStart) voidstart()voidvoidstop()toString()
-
Constructor Details
-
GatewaySenderWrapper
Constructs an instance ofGatewaySenderWrapperinitialized with the givenGatewaySenderto adapt.- Parameters:
gatewaySender-GatewaySenderto adapt.- Throws:
IllegalArgumentException- ifGatewaySenderis null.- See Also:
-
-
Method Details
-
isBatchConflationEnabled
public boolean isBatchConflationEnabled()- Specified by:
isBatchConflationEnabledin interfaceGatewaySender
-
isDiskSynchronous
public boolean isDiskSynchronous()- Specified by:
isDiskSynchronousin interfaceGatewaySender
-
isManualStart
public boolean isManualStart()- Specified by:
isManualStartin interfaceGatewaySender
-
isParallel
public boolean isParallel()- Specified by:
isParallelin interfaceGatewaySender
-
isPaused
public boolean isPaused()- Specified by:
isPausedin interfaceGatewaySender
-
isPersistenceEnabled
public boolean isPersistenceEnabled()- Specified by:
isPersistenceEnabledin interfaceGatewaySender
-
isRunning
public boolean isRunning()- Specified by:
isRunningin interfaceGatewaySender
-
getAlertThreshold
public int getAlertThreshold()- Specified by:
getAlertThresholdin interfaceGatewaySender
-
getBatchSize
public int getBatchSize()- Specified by:
getBatchSizein interfaceGatewaySender
-
getBatchTimeInterval
public int getBatchTimeInterval()- Specified by:
getBatchTimeIntervalin interfaceGatewaySender
-
getDiskStoreName
- Specified by:
getDiskStoreNamein interfaceGatewaySender
-
getDispatcherThreads
public int getDispatcherThreads()- Specified by:
getDispatcherThreadsin interfaceGatewaySender
-
getEnforceThreadsConnectSameReceiver
public boolean getEnforceThreadsConnectSameReceiver()- Specified by:
getEnforceThreadsConnectSameReceiverin interfaceGatewaySender
-
getGatewayEventFilters
- Specified by:
getGatewayEventFiltersin interfaceGatewaySender
-
getGatewayEventSubstitutionFilter
- Specified by:
getGatewayEventSubstitutionFilterin interfaceGatewaySender
-
getGatewayTransportFilters
- Specified by:
getGatewayTransportFiltersin interfaceGatewaySender
-
getId
- Specified by:
getIdin interfaceGatewaySender
-
setManualStart
public void setManualStart(boolean manualStart) -
getMaxParallelismForReplicatedRegion
public int getMaxParallelismForReplicatedRegion()- Specified by:
getMaxParallelismForReplicatedRegionin interfaceGatewaySender
-
getMaximumQueueMemory
public int getMaximumQueueMemory()- Specified by:
getMaximumQueueMemoryin interfaceGatewaySender
-
getOrderPolicy
- Specified by:
getOrderPolicyin interfaceGatewaySender
-
getRemoteDSId
public int getRemoteDSId()- Specified by:
getRemoteDSIdin interfaceGatewaySender
-
getSocketBufferSize
public int getSocketBufferSize()- Specified by:
getSocketBufferSizein interfaceGatewaySender
-
getSocketReadTimeout
public int getSocketReadTimeout()- Specified by:
getSocketReadTimeoutin interfaceGatewaySender
-
addGatewayEventFilter
- Specified by:
addGatewayEventFilterin interfaceGatewaySender
-
mustGroupTransactionEvents
public boolean mustGroupTransactionEvents()- Specified by:
mustGroupTransactionEventsin interfaceGatewaySender
-
removeGatewayEventFilter
- Specified by:
removeGatewayEventFilterin interfaceGatewaySender
-
destroy
public void destroy()- Specified by:
destroyin interfaceGatewaySender
-
pause
public void pause()- Specified by:
pausein interfaceGatewaySender
-
rebalance
public void rebalance()- Specified by:
rebalancein interfaceGatewaySender
-
resume
public void resume()- Specified by:
resumein interfaceGatewaySender
-
start
public void start()- Specified by:
startin interfaceGatewaySender
-
startWithCleanQueue
public void startWithCleanQueue()- Specified by:
startWithCleanQueuein interfaceGatewaySender
-
stop
public void stop()- Specified by:
stopin interfaceGatewaySender
-
toString
-