Class PrimaryOnlyActivation
java.lang.Object
org.apache.activemq.artemis.core.server.impl.Activation
org.apache.activemq.artemis.core.server.impl.PrimaryOnlyActivation
- All Implemented Interfaces:
Runnable
-
Constructor Summary
ConstructorsConstructorDescriptionPrimaryOnlyActivation(ActiveMQServerImpl server, PrimaryOnlyPolicy primaryOnlyPolicy) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose(boolean permanently, boolean restarting) voidconnectToScaleDownTarget(ScaleDownPolicy scaleDownPolicy) voidfreezeConnections(RemotingService remotingService) freeze the connection but allow the Activation to over ride this and decide if any connections should be left open.voidallow the activation to override this if it needs to tidy up after freezing the connection. it's a different method as it's called outside of the lock that the previous method is.voidrun()longscaleDown(int commitInterval) Methods inherited from class org.apache.activemq.artemis.core.server.impl.Activation
createJournalLoader, getActivationChannelHandler, getHAManager, getReplicationManager, haStarted, isReplicaSync, preStorageClose, sendPrimaryIsStopping
-
Constructor Details
-
PrimaryOnlyActivation
-
-
Method Details
-
getPrimaryOnlyPolicy
-
run
public void run() -
close
- Specified by:
closein classActivation- Throws:
Exception
-
freezeConnections
Description copied from class:Activationfreeze the connection but allow the Activation to over ride this and decide if any connections should be left open.- Overrides:
freezeConnectionsin classActivation
-
postConnectionFreeze
public void postConnectionFreeze()Description copied from class:Activationallow the activation to override this if it needs to tidy up after freezing the connection. it's a different method as it's called outside of the lock that the previous method is.- Overrides:
postConnectionFreezein classActivation
-
connectToScaleDownTarget
-
scaleDown
- Throws:
Exception
-