public class DemoteHandler extends Object implements ISpaceModeListener
| Constructor and Description |
|---|
DemoteHandler(SpaceImpl spaceImpl) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterSpaceModeChange(SpaceMode newMode)
Called right after the space mode changes.
|
void |
beforeSpaceModeChange(SpaceMode newMode)
Called right before the space mode changes.
Implementors usually use it to allow specific service initializations. |
void |
demote(long maxSuspendTime,
TimeUnit unit) |
public DemoteHandler(SpaceImpl spaceImpl)
public void demote(long maxSuspendTime,
TimeUnit unit)
throws DemoteFailedException
DemoteFailedExceptionpublic void beforeSpaceModeChange(SpaceMode newMode) throws RemoteException
ISpaceModeListenerbeforeSpaceModeChange in interface ISpaceModeListenernewMode - the new mode change before it's published.RemoteException - if an exception occurred during execution of a remote call.public void afterSpaceModeChange(SpaceMode newMode) throws RemoteException
ISpaceModeListenerafterSpaceModeChange in interface ISpaceModeListenernewMode - the new mode change after it was published.RemoteException - if an exception occurred during execution of a remote call.Copyright © GigaSpaces.