AutoCloseable, ServiceRegistrationpublic class AggregateServiceRegistration extends Object implements ServiceRegistration
ServiceRegistration.aggregate(ServiceRegistration...)EMPTY| Modifier | Constructor | Description |
|---|---|---|
protected |
AggregateServiceRegistration(ServiceRegistration... registrations) |
Construct a new instance.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
activate() |
Re-activate this registration immediately and indefinitely.
|
void |
close() |
Close and remove this registration immediately.
|
void |
deactivate() |
Invalidate this registration immediately (possibly temporarily) without closing it.
|
void |
hintDeactivateAt(Instant instant) |
Hint to this registration that deactivation of the service is likely at the given time.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprotected AggregateServiceRegistration(ServiceRegistration... registrations)
registrations - the registrations (must not be null)public void close()
ServiceRegistrationclose in interface AutoCloseableclose in interface ServiceRegistrationpublic void deactivate()
ServiceRegistrationdeactivate in interface ServiceRegistrationpublic void activate()
ServiceRegistrationactivate in interface ServiceRegistrationpublic void hintDeactivateAt(Instant instant)
ServiceRegistrationhintDeactivateAt in interface ServiceRegistrationinstant - the time at which deactivation is likely (must not be null)Copyright © 2019 JBoss by Red Hat. All rights reserved.