T
- a type of Kubernetes resourcepublic class SynchronizationEvent<T extends HasMetadata> extends AbstractEvent<T>
AbstractEvent
that describes an EventCache
synchronization event.EventCache
,
Serialized FormAbstractEvent.Type
source
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, toString
getSource
public SynchronizationEvent(Object source, AbstractEvent.Type type, T priorResource, T resource)
SynchronizationEvent
.source
- the creator; must not be null
type
- the Type
of this SynchronizationEvent
; must not be null
; must not be
Type#DELETION
priorResource
- 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 null
NullPointerException
- if source
, type
or resource
is null
IllegalArgumentException
- if Type#DELETION
is
equal to type
Type
,
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.