mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
HCOLL-167 simplified the map builder by making "file" very much an option parameter, is it not REQUIRED for all types of maps. Also updated the many of the TCP replication test to remove the user of file() as its simply not required for this in many cases.
This commit is contained in:
@@ -27,8 +27,7 @@ import static org.junit.Assert.fail;
|
||||
public class AcquireGetUsingMain {
|
||||
public static void main(String[] args) throws Exception {
|
||||
File file = new File(System.getProperty("java.io.tmpdir") + "/test1");
|
||||
ChronicleMap<String, Data> theSharedMap = ChronicleMapBuilder.of(String.class, Data.class)
|
||||
.create(file);
|
||||
ChronicleMap<String, Data> theSharedMap = ChronicleMapBuilder.of(String.class, Data.class).file(file).create();
|
||||
Data data = DataValueClasses.newDirectReference(Data.class);
|
||||
String processType = "testkey";
|
||||
if (theSharedMap.getUsing(processType, data) == null) {
|
||||
|
||||
Reference in New Issue
Block a user