public abstract class AbstractPeerPersistence extends Object implements PeerPersistence
| Modifier and Type | Class and Description |
|---|---|
protected static interface |
AbstractPeerPersistence.IOConsumer<T> |
| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
logger |
(package private) static String |
REMOTE_INSTANCE_URIS_PREFIX |
| Constructor and Description |
|---|
AbstractPeerPersistence() |
| Modifier and Type | Method and Description |
|---|---|
private Set<PeerStatus> |
readPeerStatuses(BufferedReader reader) |
protected PeerStatusCache |
restorePeerStatuses(BufferedReader reader,
long cachedTimestamp) |
protected void |
write(PeerStatusCache peerStatusCache,
AbstractPeerPersistence.IOConsumer<String> consumer) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitrestore, savestatic final String REMOTE_INSTANCE_URIS_PREFIX
protected org.slf4j.Logger logger
protected PeerStatusCache restorePeerStatuses(BufferedReader reader, long cachedTimestamp) throws IOException
IOExceptionprivate Set<PeerStatus> readPeerStatuses(BufferedReader reader) throws IOException
IOExceptionprotected void write(PeerStatusCache peerStatusCache, AbstractPeerPersistence.IOConsumer<String> consumer) throws IOException
IOExceptionCopyright © 2023 Apache NiFi Project. All rights reserved.