Class ProcessorListener<T>
- java.lang.Object
-
- io.fabric8.kubernetes.client.informers.cache.ProcessorListener<T>
-
- Type Parameters:
T
- type of ProcessorListener
- All Implemented Interfaces:
Runnable
public class ProcessorListener<T> extends Object implements Runnable
ProcessorListener implements Runnable interface. It's supposed to run in background and actually executes its event handler on notification. Note that it allows 1000 pending notification at maximum. This has been taken from official client: https://github.com/kubernetes-client/java/blob/master/util/src/main/java/io/kubernetes/client/informer/cache/ProcessorListener.java which has been ported from official go client: https://github.com/kubernetes/client-go/blob/master/tools/cache/shared_informer.go#L570
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ProcessorListener.AddNotification<T>
static class
ProcessorListener.DeleteNotification<T>
static class
ProcessorListener.Notification<T>
static class
ProcessorListener.UpdateNotification<T>
-
Constructor Summary
Constructors Constructor Description ProcessorListener(ResourceEventHandler<T> handler, long resyncPeriodInMillis)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(ProcessorListener.Notification<T> obj)
void
determineNextResync(ZonedDateTime now)
void
run()
boolean
shouldResync(ZonedDateTime now)
-
-
-
Constructor Detail
-
ProcessorListener
public ProcessorListener(ResourceEventHandler<T> handler, long resyncPeriodInMillis)
-
-
Method Detail
-
add
public void add(ProcessorListener.Notification<T> obj)
-
determineNextResync
public void determineNextResync(ZonedDateTime now)
-
shouldResync
public boolean shouldResync(ZonedDateTime now)
-
-