Vyacheslav Koptilin created IGNITE-26391:
--------------------------------------------

             Summary: Change type of enlistmentConsistencyToken to long to 
avoid redundant boxing/unboxing
                 Key: IGNITE-26391
                 URL: https://issues.apache.org/jira/browse/IGNITE-26391
             Project: Ignite
          Issue Type: Improvement
            Reporter: Vyacheslav Koptilin
            Assignee: Vyacheslav Koptilin
             Fix For: 3.1


 

 
{code:java}
public class PartitionWithConsistencyToken {
    ... 
    /** Enlistment consistency token. */ 
    @IgniteToStringInclude private final long enlistmentConsistencyToken; 

    /**
     * Constructor.
     *
     * @param partId partition number
     * @param enlistmentConsistencyToken Enlistment consistency token.
     */
    public PartitionWithConsistencyToken(int partId, Long 
enlistmentConsistencyToken) {
        this.partId = partId;
        this.enlistmentConsistencyToken = enlistmentConsistencyToken;
    }{code}
The `enlistmentConsistencyToken` is always long and cannot be `null`. Need to 
change `Long` to `long` to avoid boxing/unboxing.

 

 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to