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
DemoteFailedException
public void beforeSpaceModeChange(SpaceMode newMode) throws RemoteException
ISpaceModeListener
beforeSpaceModeChange
in interface ISpaceModeListener
newMode
- 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
ISpaceModeListener
afterSpaceModeChange
in interface ISpaceModeListener
newMode
- the new mode change after it was published.RemoteException
- if an exception occurred during execution of a remote call.Copyright © GigaSpaces.