Package com.oracle.coherence.client
Class RemoteCollection.EntryAdvancer<K,V>
- java.lang.Object
-
- com.oracle.coherence.client.RemoteCollection.EntryAdvancer<K,V>
-
- All Implemented Interfaces:
com.tangosol.util.PagedIterator.Advancer
- Enclosing class:
- RemoteCollection<K,V,T>
protected static class RemoteCollection.EntryAdvancer<K,V> extends Object implements com.tangosol.util.PagedIterator.Advancer
APagedIterator.Advancerto support aPagedIteratorover an entry set.
-
-
Field Summary
Fields Modifier and Type Field Description protected AsyncNamedCacheClient<K,V>m_clientTheAsyncNamedCacheClientused to send gRPC requests.protected com.google.protobuf.ByteStringm_cookieThe opaque cookie used by the server to maintain the page location.protected booleanm_exhaustedA flag indicating whether this advancer has exhausted all of the pages.
-
Constructor Summary
Constructors Modifier Constructor Description protectedEntryAdvancer(AsyncNamedCacheClient<K,V> client)Constructs a newEntryAdvancerusing the providedAsyncNamedCacheClient.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Map.Entry<com.google.protobuf.ByteString,com.google.protobuf.ByteString>fromEntryResult(EntryResult result)CollectionnextPage()voidremove(Object oCurr)protected EntryResulttoEntryResult(Map.Entry<com.google.protobuf.ByteString,com.google.protobuf.ByteString> entry)Convert aMap.Entryto anEntryResult.
-
-
-
Field Detail
-
m_exhausted
protected boolean m_exhausted
A flag indicating whether this advancer has exhausted all of the pages.
-
m_cookie
protected com.google.protobuf.ByteString m_cookie
The opaque cookie used by the server to maintain the page location.
-
m_client
protected final AsyncNamedCacheClient<K,V> m_client
TheAsyncNamedCacheClientused to send gRPC requests.
-
-
Constructor Detail
-
EntryAdvancer
protected EntryAdvancer(AsyncNamedCacheClient<K,V> client)
Constructs a newEntryAdvancerusing the providedAsyncNamedCacheClient.- Parameters:
client- the async client
-
-
Method Detail
-
remove
public void remove(Object oCurr)
- Specified by:
removein interfacecom.tangosol.util.PagedIterator.Advancer
-
nextPage
public Collection nextPage()
- Specified by:
nextPagein interfacecom.tangosol.util.PagedIterator.Advancer
-
fromEntryResult
protected Map.Entry<com.google.protobuf.ByteString,com.google.protobuf.ByteString> fromEntryResult(EntryResult result)
- Parameters:
result- theEntryResultto wrap in aMap.Entry- Returns:
- a
Map.Entrythat wraps anEntryResult
-
toEntryResult
protected EntryResult toEntryResult(Map.Entry<com.google.protobuf.ByteString,com.google.protobuf.ByteString> entry)
Convert aMap.Entryto anEntryResult.- Parameters:
entry- theMap.Entryto convert- Returns:
- an
EntryResultthat takes its key and value from aMap.Entry
-
-