public class ProcessorListener<ApiType>
extends java.lang.Object
implements java.lang.Runnable
| Modifier and Type | Class and Description |
|---|---|
static class |
ProcessorListener.AddNotification<ApiType> |
static class |
ProcessorListener.DeleteNotification<ApiType> |
static class |
ProcessorListener.Notification<ApiType> |
static class |
ProcessorListener.UpdateNotification<ApiType> |
| Constructor and Description |
|---|
ProcessorListener(ResourceEventHandler<ApiType> handler,
long resyncPeriod) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(ProcessorListener.Notification<ApiType> obj) |
void |
determineNextResync(org.joda.time.DateTime now) |
void |
run() |
boolean |
shouldResync(org.joda.time.DateTime now) |
public ProcessorListener(ResourceEventHandler<ApiType> handler, long resyncPeriod)
public void run()
run in interface java.lang.Runnablepublic void add(ProcessorListener.Notification<ApiType> obj)
public void determineNextResync(org.joda.time.DateTime now)
public boolean shouldResync(org.joda.time.DateTime now)
Copyright © 2019. All rights reserved.