Skip to content

Commit

Permalink
Remove Java ACM
Browse files Browse the repository at this point in the history
  • Loading branch information
externl committed Jun 3, 2024
1 parent 3221b4a commit 29c720f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
3 changes: 0 additions & 3 deletions java/Glacier2/callback/Client.java
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,8 @@ private static int run(com.zeroc.Ice.Communicator communicator)
}
}

int acmTimeout = router.getACMTimeout();
com.zeroc.Ice.Connection connection = router.ice_getCachedConnection();
assert(connection != null);
connection.setACM(java.util.OptionalInt.of(acmTimeout), null,
java.util.Optional.of(com.zeroc.Ice.ACMHeartbeat.HeartbeatAlways));
connection.setCloseCallback(con -> System.out.println("The Glacier2 session has been destroyed."));

//
Expand Down
7 changes: 0 additions & 7 deletions java/Ice/session/SessionFactoryI.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,6 @@ public SessionPrx create(String name, com.zeroc.Ice.Current current)
//
SessionPrx collocProxy = proxy.ice_endpoints(new com.zeroc.Ice.Endpoint[0]);

//
// Never close this connection from the client and turn on heartbeats with a timeout of 30s
//
current.con.setACM(java.util.OptionalInt.of(30),
java.util.Optional.of(com.zeroc.Ice.ACMClose.CloseOff),
java.util.Optional.of(com.zeroc.Ice.ACMHeartbeat.HeartbeatAlways));

current.con.setCloseCallback(con ->
{
try
Expand Down

0 comments on commit 29c720f

Please sign in to comment.