Constructor and Description |
---|
SegmentCache()
Deprecated.
Constructs SegmentCache instance.
|
Modifier and Type | Method and Description |
---|---|
Segment |
getSegment()
Deprecated.
Simply returns
new Segment() . |
static SegmentCache |
getSharedInstance()
Deprecated.
Simply use
new Segment() . |
void |
releaseSegment(Segment segment)
Deprecated.
Does nothing.
|
public static SegmentCache getSharedInstance()
new Segment()
.public Segment getSegment()
new Segment()
.Segment
. When done, the segment
should be recycled by invoking #releaseSegment()
.public void releaseSegment(Segment segment)
segmentCache.releaseSegment(segment); segmentCache.releaseSegment(segment);
getSegment()
can be released.segment
- segment to be released.Built on June 4 2024. | Copyright © 2017-2024 Apache Software Foundation. All Rights Reserved.