@Documented @Inherited @Retention(value=RUNTIME) @Target(value=TYPE) public @interface Clustered
| Modifier and Type | Optional Element and Description |
|---|---|
boolean |
callPostConstructOnAttach
Specifies whether to call @PostConstruct when the singleton is attached to a cluster
and this singleton already exists on the other node.
|
boolean |
callPreDestoyOnDetach
Specifies whether to call @PreDestroy when the singleton is detached from a cluster
and this singleton also exists on the other node.
|
String |
keyName
key in the distributed map to bind this clustered object to.
|
DistributedLockType |
lock
specifies the type of distributed locking to be performed
For EJB beans, the only INHERIT or NONE are valid,
for CDI beans, INHERIT is equivalent to NONE,
and the other valid value for CDI beans is LOCK
|
public abstract String keyName
public abstract DistributedLockType lock
Copyright © 2017. All rights reserved.