public interface ServiceRegistration extends AutoCloseable
| Modifier and Type | Field and Description |
|---|---|
static ServiceRegistration |
EMPTY
An empty service registration handle, which has no effect.
|
| Modifier and Type | Method and Description |
|---|---|
void |
activate()
Re-activate this registration immediately and indefinitely.
|
static ServiceRegistration |
aggregate(ServiceRegistration... registrations)
Create an aggregate of registrations which are all controlled as one.
|
void |
close()
Close and remove this registration immediately.
|
void |
deactivate()
Invalidate this registration immediately (possibly temporarily) without closing it.
|
default void |
hintDeactivateAt(Instant instant)
Hint to this registration that deactivation of the service is likely at the given time.
|
static final ServiceRegistration EMPTY
void close()
close in interface AutoCloseablevoid deactivate()
void activate()
default void hintDeactivateAt(Instant instant)
instant - the time at which deactivation is likely (must not be null)static ServiceRegistration aggregate(ServiceRegistration... registrations)
registrations - the registrations to controlCopyright © 2017 JBoss by Red Hat. All rights reserved.