question

Upvotes
Accepted
15 4 6 4

AuthorizationMCSystem vs. AuthorizationSystem

I understand that AuthorizationMCSystem can be used for maintaining multiple connections with DACS daemons, for fault tolerance purposes. However, based on the Java docs of the Java SDK, it looks like plain AuthorizationSystem also supports a list of "host:port" entries for the "dacs.daemon" property. What is the difference between the two classes?

DACSopen-dacs
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

· Write an Answer
Upvotes
Accepted
25.3k 87 12 25

When specifying multiple hosts with AuthorizationSystem , this acts as a failover, in case it cannot connect to the 1st host in the list, it will try the next one in the list - but only a connection to a single site is maintained.

As you pointed out AuthorizationMCSystem is for when you wish to maintain connections to multiple sites.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.