Skip to content

Commit

Permalink
Merge pull request #377 from katarinaking/817
Browse files Browse the repository at this point in the history
MNEMONIC-817: Refined Durable Computable Interface
  • Loading branch information
katarinaking authored Mar 3, 2024
2 parents ee33076 + 81c3f30 commit 537102c
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 537102c

Please sign in to comment.