public interface TargetAware
Operation
that has to be aware of the remote
target member address before being serialized and sent over the network
can implement TargetAware
interface so the target Address
will be injected to it.
The target Address
injection only happens when the
Operation
is invoked using the invocation system.
When a TargetAware
operation is explicitly sent to a remote target
or executed locally, setTarget(Address)
should be explicitly called
before the operation is sent or executed.
Modifier and Type | Method and Description |
---|---|
void |
setTarget(Address address)
Provides the designated target member address to which the operation
will be sent.
|
void setTarget(Address address)
setTarget
will be invoked on each retry with the
current target member's Address
as argument
address
is provided as target address
address
- target member's addressCopyright © 2018 Hazelcast, Inc.. All Rights Reserved.