Util Class

  • java.lang.Object
    • com.microsoft.azure.servicebus.primitives.Util

public class Util

Method Summary

Modifier and Type Method and Description
Duration adjustServerTimeout(Duration clientTimeout)
UUID convertDotNetBytesToUUID(byte[] dotNetBytes)
Instant convertDotNetTicksToInstant(long dotNetTicks)
long convertInstantToDotNetTicks(Instant instant)
URI convertNamespaceToEndPointURI(String namespaceName)
byte [] convertUUIDToDotNetBytes(UUID uniqueId)
ClientSettings getClientSettingsFromConnectionStringBuilder(ConnectionStringBuilder builder)
int getDataSerializedSize(Message amqpMessage)

Method Details

adjustServerTimeout

public static Duration adjustServerTimeout(Duration clientTimeout)

Parameters:

clientTimeout

convertDotNetBytesToUUID

public static UUID convertDotNetBytesToUUID(byte[] dotNetBytes)

Parameters:

dotNetBytes

convertDotNetTicksToInstant

public static Instant convertDotNetTicksToInstant(long dotNetTicks)

Parameters:

dotNetTicks

convertInstantToDotNetTicks

public static long convertInstantToDotNetTicks(Instant instant)

Parameters:

instant

convertNamespaceToEndPointURI

public static URI convertNamespaceToEndPointURI(String namespaceName)

Parameters:

namespaceName

convertUUIDToDotNetBytes

public static byte [] convertUUIDToDotNetBytes(UUID uniqueId)

Parameters:

uniqueId

getClientSettingsFromConnectionStringBuilder

public static ClientSettings getClientSettingsFromConnectionStringBuilder(ConnectionStringBuilder builder)

Parameters:

builder

getDataSerializedSize

public static int getDataSerializedSize(Message amqpMessage)

Parameters:

amqpMessage

Applies to