public class BlockList extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
BlockList.CommittedEntry
Represents an entry in a
BlockList for a previously committed
block. |
static class |
BlockList.Entry
The abstract base class for an entry in a
BlockList, representing
a committed or uncommitted block. |
static class |
BlockList.LatestEntry
Represents an entry in a
BlockList for the most recent
uncommitted block with the specified block ID, or the committed block
with the specified block ID if no uncommitted block is found. |
static class |
BlockList.UncommittedEntry
Represents an entry in a
BlockList for an uncommitted block. |
| Constructor and Description |
|---|
BlockList() |
| Modifier and Type | Method and Description |
|---|---|
BlockList |
addCommittedEntry(String blockId)
Adds the committed block specified by the block ID to the block list.
|
BlockList |
addLatestEntry(String blockId)
Adds the latest block specified by the block ID to the block list.
|
BlockList |
addUncommittedEntry(String blockId)
Adds the uncommitted block specified by the block ID to the block list.
|
List<BlockList.Entry> |
getEntries()
Gets the collection of entries for the block list.
|
BlockList |
setEntries(List<BlockList.Entry> entries)
Sets the block list to the specified collection of entries.
|
public BlockList addCommittedEntry(String blockId)
public BlockList addUncommittedEntry(String blockId)
public BlockList addLatestEntry(String blockId)
public List<BlockList.Entry> getEntries()
List of BlockList.Entry instances specifying the blocks
to commit.public BlockList setEntries(List<BlockList.Entry> entries)
entries - A List of BlockList.Entry instances specifying the
blocks to commit.BlockList instance./**
* Copyright Microsoft Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/