9#ifndef SQUID_SRC_MEMOBJECT_H
10#define SQUID_SRC_MEMOBJECT_H
110 int64_t
size()
const;
130#if URL_CHECKSUM_DEBUG
132 void checkUrlChecksum()
const;
145 const char *
logUri()
const;
217#if URL_CHECKSUM_DEBUG
218 unsigned int chksum = 0;
RemovalPolicy * mem_policy
void STMCB(void *data, StoreIOBuffer wroteBuffer)
State of an entry with regards to the [shared] memory caching.
int32_t index
entry position inside the memory cache
Store::IoStatus io
current I/O state
int64_t offset
bytes written/read to/from the memory cache so far
int64_t queue_offset
number of bytes sent to SwapDir for writing
Decision decision
current decision state
StoreIOState::Pointer sio
Decision
Decision states for StoreEntry::swapoutPossible() and related code.
State of an entry with regards to the [shared] in-transit table.
void close()
stop associating our StoreEntry with a Transients entry
int32_t index
entry position inside the in-transit table
void open(const int32_t anIndex, const Store::IoStatus anIo)
associate our StoreEntry with a Transients entry at the given index
Store::IoStatus io
current I/O state
void replaceBaseReply(const HttpReplyPointer &r)
int64_t lowestMemReaderOffset() const
DelayId mostBytesAllowed() const
SBuf logUri_
URI used for logging (usually request URI)
IRCB * ping_reply_callback
size_t clientCount() const
const char * urlXXX() const
static size_t inUseCount()
int64_t availableForSwapOut() const
buffered bytes we have not swapped out yet
HttpRequestPointer request
int64_t policyLowestOffsetToKeep(bool swap) const
int64_t objectBytesOnDisk() const
void setNoDelay(bool const newValue)
void addClient(store_client *)
XitTable xitTable
current [shared] memory caching state for the entry
int64_t expectedReplySize() const
const HttpReplyPointer & updatedReply() const
AsyncCallPointer abortCallback
used for notifying StoreEntry writers about 3rd-party initiated aborts
void updateReply(const HttpReply &r)
(re)sets updated reply;
const HttpReply & freshestReply() const
struct timeval start_ping
void markEndOfReplyHeaders()
sets baseReply().hdr_sz (i.e. written reply headers size) to endOffset()
bool clientIsFirst(void *sc) const
MEMPROXY_CLASS(MemObject)
SBuf storeId_
StoreId for our entry (usually request URI)
void delayRead(const AsyncCallPointer &)
void write(const StoreIOBuffer &buf)
int mostBytesWanted(int max, bool ignoreDelayPools) const
MemCache memCache
current [shared] memory caching state for the entry
int64_t endOffset() const
void setUris(char const *aStoreId, char const *aLogUri, const HttpRequestMethod &aMethod)
const char * storeId() const
const HttpReply & baseReply() const
HttpReply & adjustableBaseReply()
bool hasUris() const
whether setUris() has been called
const char * logUri() const
client request URI used for logging; storeId() by default
DelayedAsyncCalls deferredReads
HttpReplyPointer updatedReply_
bool readAheadPolicyCanRead() const
bool isContiguous() const
void stat(MemBuf *mb) const
A const & max(A const &lhs, A const &rhs)
IoStatus
cache "I/O" direction and status
void IRCB(CachePeer *, peer_t, AnyP::ProtocolType, void *, void *data)