T - a type of Kubernetes resourcepublic class SynchronizationEvent<T extends HasMetadata> extends AbstractEvent<T>
AbstractEvent that describes an EventCache
synchronization event.EventCache,
Serialized FormAbstractEvent.Typesource| Constructor and Description |
|---|
SynchronizationEvent(Object source,
AbstractEvent.Type type,
T priorResource,
T resource)
Creates a new
SynchronizationEvent. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other)
Returns
true if the supplied Object is also a
SynchronizationEvent and is equal in every respect to
this one. |
getKey, getPriorResource, getResource, getType, hashCode, isFinalStateKnown, toStringgetSourcepublic SynchronizationEvent(Object source, AbstractEvent.Type type, T priorResource, T resource)
SynchronizationEvent.source - the creator; must not be nulltype - the Type of this SynchronizationEvent; must not be null; must not be
Type#DELETIONpriorResource - a HasMetadata representing the
prior state of the Kubernetes
resource this Event primarily concerns; may
be—and often is—nullresource - a HasMetadata representing a Kubernetes
resource; must not be nullNullPointerException - if source, type
or resource is nullIllegalArgumentException - if Type#DELETION is
equal to typeType,
EventObject.getSource()public boolean equals(Object other)
true if the supplied Object is also a
SynchronizationEvent and is equal in every respect to
this one.equals in class AbstractEvent<T extends HasMetadata>other - the Object to test; may be null in
which case false will be returnedtrue if the supplied Object is also a
SynchronizationEvent and is equal in every respect to
this one; false otherwiseCopyright © 2017–2021, microBean™. All rights reserved.