public interface MigratableHandler extends SelectionHandler
SelectionHandler
that supports migration between NonBlockingIOThread
instances.
This API is called by the IOBalancer
.Modifier and Type | Method and Description |
---|---|
long |
getEventCount()
Get number of events recorded by the current handler.
|
NonBlockingIOThread |
getOwner()
Get NonBlockingIOThread currently owning this handler.
|
void |
requestMigration(NonBlockingIOThread newOwner)
Requests the MigratableHandler to move to the new NonBlockingIOThread.
|
handle, onFailure
void requestMigration(NonBlockingIOThread newOwner)
IOBalancer
.
Call is ignored when handler is moving to the same NonBlockingIOThread.newOwner
- the NonBlockingIOThread that is going to own this MigratableHandlerNonBlockingIOThread getOwner()
IOBalancer
can decide to migrate
a handler to another owner.long getEventCount()
NonBlockingIOThread
Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.