Issue #6728 - QUIC and HTTP/3

- Implemented better toString() for Instruction implementations.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
This commit is contained in:
Simone Bordet 2021-10-13 17:59:51 +02:00
parent 24840a6ede
commit 77d0595191
7 changed files with 42 additions and 0 deletions

View File

@ -44,4 +44,10 @@ public class DuplicateInstruction implements Instruction
BufferUtil.flipToFlush(buffer, 0);
lease.append(buffer, true);
}
@Override
public String toString()
{
return String.format("%s@%x", getClass().getSimpleName(), hashCode());
}
}

View File

@ -78,4 +78,10 @@ public class IndexedNameEntryInstruction implements Instruction
BufferUtil.flipToFlush(buffer, 0);
lease.append(buffer, true);
}
@Override
public String toString()
{
return String.format("%s@%x", getClass().getSimpleName(), hashCode());
}
}

View File

@ -39,4 +39,10 @@ public class InsertCountIncrementInstruction implements Instruction
BufferUtil.flipToFlush(buffer, 0);
lease.append(buffer, true);
}
@Override
public String toString()
{
return String.format("%s@%x", getClass().getSimpleName(), hashCode());
}
}

View File

@ -88,4 +88,10 @@ public class LiteralNameEntryInstruction implements Instruction
BufferUtil.flipToFlush(buffer, 0);
lease.append(buffer, true);
}
@Override
public String toString()
{
return String.format("%s@%x", getClass().getSimpleName(), hashCode());
}
}

View File

@ -39,4 +39,10 @@ public class SectionAcknowledgmentInstruction implements Instruction
BufferUtil.flipToFlush(buffer, 0);
lease.append(buffer, true);
}
@Override
public String toString()
{
return String.format("%s@%x", getClass().getSimpleName(), hashCode());
}
}

View File

@ -44,4 +44,10 @@ public class SetCapacityInstruction implements Instruction
BufferUtil.flipToFlush(buffer, 0);
lease.append(buffer, true);
}
@Override
public String toString()
{
return String.format("%s@%x", getClass().getSimpleName(), hashCode());
}
}

View File

@ -39,4 +39,10 @@ public class StreamCancellationInstruction implements Instruction
BufferUtil.flipToFlush(buffer, 0);
lease.append(buffer, true);
}
@Override
public String toString()
{
return String.format("%s@%x", getClass().getSimpleName(), hashCode());
}
}