Class GatewaySenderWrapper
java.lang.Object
org.springframework.data.gemfire.wan.GatewaySenderWrapper
- All Implemented Interfaces:
org.apache.geode.cache.wan.GatewaySender
public class GatewaySenderWrapper
extends Object
implements org.apache.geode.cache.wan.GatewaySender
GatewaySenderWrapper
is an Adapter around an Apache Geode GatewaySender
providing the ability to control manual start and stop of the sender.- See Also:
-
GatewaySender
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.geode.cache.wan.GatewaySender
org.apache.geode.cache.wan.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
ConstructorDescriptionGatewaySenderWrapper
(org.apache.geode.cache.wan.GatewaySender gatewaySender) Constructs an instance ofGatewaySenderWrapper
initialized with the givenGatewaySender
to adapt. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addGatewayEventFilter
(org.apache.geode.cache.wan.GatewayEventFilter filter) void
destroy()
int
int
int
int
boolean
List<org.apache.geode.cache.wan.GatewayEventFilter>
org.apache.geode.cache.wan.GatewayEventSubstitutionFilter
List<org.apache.geode.cache.wan.GatewayTransportFilter>
getId()
int
int
org.apache.geode.cache.wan.GatewaySender.OrderPolicy
int
int
int
boolean
boolean
boolean
boolean
boolean
isPaused()
boolean
boolean
boolean
void
pause()
void
void
removeGatewayEventFilter
(org.apache.geode.cache.wan.GatewayEventFilter filter) void
resume()
void
setManualStart
(boolean manualStart) void
start()
void
void
stop()
toString()
-
Constructor Details
-
GatewaySenderWrapper
public GatewaySenderWrapper(org.apache.geode.cache.wan.GatewaySender gatewaySender) Constructs an instance ofGatewaySenderWrapper
initialized with the givenGatewaySender
to adapt.- Parameters:
gatewaySender
-GatewaySender
to adapt.- Throws:
IllegalArgumentException
- ifGatewaySender
is null.- See Also:
-
GatewaySender
-
-
Method Details
-
isBatchConflationEnabled
public boolean isBatchConflationEnabled()- Specified by:
isBatchConflationEnabled
in interfaceorg.apache.geode.cache.wan.GatewaySender
-
isDiskSynchronous
public boolean isDiskSynchronous()- Specified by:
isDiskSynchronous
in interfaceorg.apache.geode.cache.wan.GatewaySender
-
isManualStart
public boolean isManualStart()- Specified by:
isManualStart
in interfaceorg.apache.geode.cache.wan.GatewaySender
-
isParallel
public boolean isParallel()- Specified by:
isParallel
in interfaceorg.apache.geode.cache.wan.GatewaySender
-
isPaused
public boolean isPaused()- Specified by:
isPaused
in interfaceorg.apache.geode.cache.wan.GatewaySender
-
isPersistenceEnabled
public boolean isPersistenceEnabled()- Specified by:
isPersistenceEnabled
in interfaceorg.apache.geode.cache.wan.GatewaySender
-
isRunning
public boolean isRunning()- Specified by:
isRunning
in interfaceorg.apache.geode.cache.wan.GatewaySender
-
getAlertThreshold
public int getAlertThreshold()- Specified by:
getAlertThreshold
in interfaceorg.apache.geode.cache.wan.GatewaySender
-
getBatchSize
public int getBatchSize()- Specified by:
getBatchSize
in interfaceorg.apache.geode.cache.wan.GatewaySender
-
getBatchTimeInterval
public int getBatchTimeInterval()- Specified by:
getBatchTimeInterval
in interfaceorg.apache.geode.cache.wan.GatewaySender
-
getDiskStoreName
- Specified by:
getDiskStoreName
in interfaceorg.apache.geode.cache.wan.GatewaySender
-
getDispatcherThreads
public int getDispatcherThreads()- Specified by:
getDispatcherThreads
in interfaceorg.apache.geode.cache.wan.GatewaySender
-
getEnforceThreadsConnectSameReceiver
public boolean getEnforceThreadsConnectSameReceiver()- Specified by:
getEnforceThreadsConnectSameReceiver
in interfaceorg.apache.geode.cache.wan.GatewaySender
-
getGatewayEventFilters
- Specified by:
getGatewayEventFilters
in interfaceorg.apache.geode.cache.wan.GatewaySender
-
getGatewayEventSubstitutionFilter
public org.apache.geode.cache.wan.GatewayEventSubstitutionFilter getGatewayEventSubstitutionFilter()- Specified by:
getGatewayEventSubstitutionFilter
in interfaceorg.apache.geode.cache.wan.GatewaySender
-
getGatewayTransportFilters
- Specified by:
getGatewayTransportFilters
in interfaceorg.apache.geode.cache.wan.GatewaySender
-
getId
- Specified by:
getId
in interfaceorg.apache.geode.cache.wan.GatewaySender
-
setManualStart
public void setManualStart(boolean manualStart) -
getMaxParallelismForReplicatedRegion
public int getMaxParallelismForReplicatedRegion()- Specified by:
getMaxParallelismForReplicatedRegion
in interfaceorg.apache.geode.cache.wan.GatewaySender
-
getMaximumQueueMemory
public int getMaximumQueueMemory()- Specified by:
getMaximumQueueMemory
in interfaceorg.apache.geode.cache.wan.GatewaySender
-
getOrderPolicy
public org.apache.geode.cache.wan.GatewaySender.OrderPolicy getOrderPolicy()- Specified by:
getOrderPolicy
in interfaceorg.apache.geode.cache.wan.GatewaySender
-
getRemoteDSId
public int getRemoteDSId()- Specified by:
getRemoteDSId
in interfaceorg.apache.geode.cache.wan.GatewaySender
-
getSocketBufferSize
public int getSocketBufferSize()- Specified by:
getSocketBufferSize
in interfaceorg.apache.geode.cache.wan.GatewaySender
-
getSocketReadTimeout
public int getSocketReadTimeout()- Specified by:
getSocketReadTimeout
in interfaceorg.apache.geode.cache.wan.GatewaySender
-
addGatewayEventFilter
public void addGatewayEventFilter(org.apache.geode.cache.wan.GatewayEventFilter filter) - Specified by:
addGatewayEventFilter
in interfaceorg.apache.geode.cache.wan.GatewaySender
-
mustGroupTransactionEvents
public boolean mustGroupTransactionEvents()- Specified by:
mustGroupTransactionEvents
in interfaceorg.apache.geode.cache.wan.GatewaySender
-
removeGatewayEventFilter
public void removeGatewayEventFilter(org.apache.geode.cache.wan.GatewayEventFilter filter) - Specified by:
removeGatewayEventFilter
in interfaceorg.apache.geode.cache.wan.GatewaySender
-
destroy
public void destroy()- Specified by:
destroy
in interfaceorg.apache.geode.cache.wan.GatewaySender
-
pause
public void pause()- Specified by:
pause
in interfaceorg.apache.geode.cache.wan.GatewaySender
-
rebalance
public void rebalance()- Specified by:
rebalance
in interfaceorg.apache.geode.cache.wan.GatewaySender
-
resume
public void resume()- Specified by:
resume
in interfaceorg.apache.geode.cache.wan.GatewaySender
-
start
public void start()- Specified by:
start
in interfaceorg.apache.geode.cache.wan.GatewaySender
-
startWithCleanQueue
public void startWithCleanQueue()- Specified by:
startWithCleanQueue
in interfaceorg.apache.geode.cache.wan.GatewaySender
-
stop
public void stop()- Specified by:
stop
in interfaceorg.apache.geode.cache.wan.GatewaySender
-
toString
-