Class OpHandlerService

java.lang.Object
com.usatiuk.dhfs.invalidation.OpHandlerService

@ApplicationScoped public class OpHandlerService extends Object
Service for handling operations. This service uses the OpHandler interface to handle operations. It is used to handle operations received from the peer.
  • Constructor Details

    • OpHandlerService

      public OpHandlerService(jakarta.enterprise.inject.Instance<OpHandler<?>> OpHandlers)
  • Method Details

    • handleOp

      public void handleOp(PeerId from, Op op)
      Handle the given operation.
      Parameters:
      from - the ID of the peer that sent the operation
      op - the operation to handle