Package org.wildfly.discovery
Class AggregateServiceRegistration
java.lang.Object
org.wildfly.discovery.AggregateServiceRegistration
- All Implemented Interfaces:
AutoCloseable,ServiceRegistration
An aggregate service registration.
- Author:
- David M. Lloyd
- See Also:
-
Field Summary
Fields inherited from interface org.wildfly.discovery.ServiceRegistration
EMPTY -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAggregateServiceRegistration(ServiceRegistration... registrations) Construct a new instance. -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate()Re-activate this registration immediately and indefinitely.voidclose()Close and remove this registration immediately.voidInvalidate this registration immediately (possibly temporarily) without closing it.voidhintDeactivateAt(Instant instant) Hint to this registration that deactivation of the service is likely at the given time.
-
Constructor Details
-
AggregateServiceRegistration
Construct a new instance.- Parameters:
registrations- the registrations (must not benull)
-
-
Method Details
-
close
public void close()Description copied from interface:ServiceRegistrationClose and remove this registration immediately.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceServiceRegistration
-
deactivate
public void deactivate()Description copied from interface:ServiceRegistrationInvalidate this registration immediately (possibly temporarily) without closing it.- Specified by:
deactivatein interfaceServiceRegistration
-
activate
public void activate()Description copied from interface:ServiceRegistrationRe-activate this registration immediately and indefinitely.- Specified by:
activatein interfaceServiceRegistration
-
hintDeactivateAt
Description copied from interface:ServiceRegistrationHint to this registration that deactivation of the service is likely at the given time.- Specified by:
hintDeactivateAtin interfaceServiceRegistration- Parameters:
instant- the time at which deactivation is likely (must not benull)
-