Skip to content

Commit

Permalink
MNEMONIC-817: Refined Durable Computable Interface
Browse files Browse the repository at this point in the history
  • Loading branch information
katarinaking committed Mar 3, 2024
1 parent 517481b commit 81c3f30
Showing 1 changed file with 18 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,25 @@

import org.apache.mnemonic.RestorableAllocator;

/**
* Represents a durable computable entity.
*
* @param <A> the type of the allocator
*/
public interface DurableComputable<A extends RestorableAllocator<A>> {

A getAllocator();
/**
* Retrieves the allocator associated with this computable entity.
*
* @return the allocator
*/
A getAllocator();

long getHandler();
/**
* Retrieves the handler associated with this computable entity.
*
* @return the handler
*/
long getHandler();
}

0 comments on commit 81c3f30

Please sign in to comment.