public interface ResponsibilityListener
| Modifier and Type | Method and Description |
|---|---|
void |
meResponsible(Number160 locationKey)
The responsibilty changed to our peer.
|
void |
meResponsible(Number160 locationKey,
PeerAddress newPeer) |
FutureDone<?> |
otherResponsible(Number160 locationKey,
PeerAddress other)
Here an other peer is responsible and we need to transfer data.
|
void meResponsible(Number160 locationKey)
locationKey - The location keyvoid meResponsible(Number160 locationKey, PeerAddress newPeer)
FutureDone<?> otherResponsible(Number160 locationKey, PeerAddress other)
locationKey - The location keyother - The other peer that is responsible for locationKeydelayed - Indicates if the other peer should get notified immediately or delayed. The case for delayed is that
multiple non responsible peers may call this and a delayed call in that case may be better.Copyright © 2014. All rights reserved.